home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-06-29 | 1.8 KB | 39 lines | [TEXT/GEOL] |
- Item 8111433 29-June-90 17:24PDT
-
- From: D4887 Advanced Comm Eng, G G Apple,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: MPW, ThP and ExampleDraw
-
- (Re-logged on. Trying again.)
-
- I just ran smack into a couple of differences between MPW and Think Pascal
- which are giving me fits trying to compile the ExampleDraw program that comes
- on the disk with the Inside Out Book.
-
- 1. ThP does not like missmatched var parameter types in procedures calls where
- MPW seems to go humming right along with no problem. ReadStreamObject calls
- for a TObject var parameter which than gets pased to ReadObject var parameter
- which calls for a TStreamObject (see p. 431 and p. 427). No go in ThP until I
- discovered and incanted the magical (and probably dangerous) "univ" keyword.
-
- 2. I have always been taught (by myself) that circular "uses" references
- between Pascal units were a no-no. Turbo Pascal enforced this on the PC and
- the Mac, and ThP enforces it. But MPW? Nooooooo. Apparently, MPW thinks this
- is just hunkey-dorey if what you use does not specifically use what you started
- with. Dave Wilson & Co. blythely circularly referenced UShapeCommands and
- UShapeViewHelper in the ExampleDraw Program (If you don't believe it, take a
- look at the Make file). OK by MPW but not ThP.
-
- I haven't unsnarled that one yet so I dont know what else I'll run into. If
- you saw my notes on Compuserve, I had a few problems with the resource files.
- in "Bird" but I'll attribute that one to my inexperience with resources (and
- Symantic accidently leaving out the resource files on their disk).
-
- If I've missed obvious something here, let me know. BTW, I'm not on the
- MacApp.$Tech listing.
-
- G. Gordon Apple (D4887)
-
-